package com.kt.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author DengXin
 * @date 2022/9/29 15:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApiResult<T> {

    private Integer code;
    private String message;
    private T data;

    public ApiResult(Integer code, String message) {
        this(code, message, null);
    }
}
